package TransportNetworkResourcesNRMSystem;
/**
 * Generated from IDL enum "ServiceCategoryType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ServiceCategoryType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _CBR = 0;
	public static final ServiceCategoryType CBR = new ServiceCategoryType(_CBR);
	public static final int _RT_VBR = 1;
	public static final ServiceCategoryType RT_VBR = new ServiceCategoryType(_RT_VBR);
	public static final int _NRT_VBR = 2;
	public static final ServiceCategoryType NRT_VBR = new ServiceCategoryType(_NRT_VBR);
	public static final int _ABR = 3;
	public static final ServiceCategoryType ABR = new ServiceCategoryType(_ABR);
	public static final int _UBR = 4;
	public static final ServiceCategoryType UBR = new ServiceCategoryType(_UBR);
	public static final int _GFR = 5;
	public static final ServiceCategoryType GFR = new ServiceCategoryType(_GFR);
	public int value()
	{
		return value;
	}
	public static ServiceCategoryType from_int(int value)
	{
		switch (value) {
			case _CBR: return CBR;
			case _RT_VBR: return RT_VBR;
			case _NRT_VBR: return NRT_VBR;
			case _ABR: return ABR;
			case _UBR: return UBR;
			case _GFR: return GFR;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _CBR: return "CBR";
			case _RT_VBR: return "RT_VBR";
			case _NRT_VBR: return "NRT_VBR";
			case _ABR: return "ABR";
			case _UBR: return "UBR";
			case _GFR: return "GFR";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ServiceCategoryType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
